<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Client APP Demo</title>
<link rel="stylesheet"
	href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
<script
	src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script
	src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdn.bootcss.com/fetch/2.0.3/fetch.js"></script>

</head>
<body>
	<div class="navbar navbar-default">
		<div class="container ">
			<p class="navbar-text">Client APP Demo</p>
		</div>
	</div>
	<div class="container ">
		<div class="row">
			<div class="col-md-12">
				<div class="panel panel-default">
				  <div class="panel-heading">获取到access token</div>
				  <div class="panel-body">
				    <p style="word-wrap:break-word;word-break:break-all;">{{token}}</p>
				  </div>
				  <div class="panel-footer">
					  	<input id="request_service_btn" name="request_service_btn" type="button"
								class="btn btn-default" value="请求资源服务">
						</input>
				  </div>
				</div>
			</div>
		</div>
	</div>
	<footer class="footer"></footer>
</body>
<script type="text/javascript">
	$(document).ready(function(){
		$('#request_service_btn').click(function(){
			window.open("/configure/service?tenant_id={{tenant_id}}&client_id={{client_id}}&client_secret={{client_secret}}&token={{token}}");
		});
	});
</script>
</html>
